package com.ruxi.springmvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {

    /**
     *  假设:localhost:8080/part1_SpringMVC/hello
     */
    @RequestMapping(value = "/hello") //请求映射,value的值与方法名没有关系,但在一般情况下保持一致
    public String hello(String username, String password){
        System.out.println(username);
        System.out.println(password);
        System.out.println("SUCCESS");
        return "SUCCESS"; //视图名称
    }


}
